<%-- 
    Document   : anadirAsoc
    Created on : 23-mar-2009, 23:27:33
    Author     : oracle
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-es" lang="es-es" dir="ltr" >
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="robots" content="index, follow" />
  <meta name="keywords" content="joomla, Joomla" />
  <meta name="description" content="Joomla! - el motor de portales dinámicos y sistema de administración de contenidos" />
  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
  <title>Bancosol - Administración</title>
  <link href="/joomla/administrator/templates/khepri/favicon.ico" rel="shortcut icon" type="image/x-icon" />


<link rel="stylesheet" href="CSS/system.css" type="text/css" />
<link rel="stylesheet" href="CSS/base.css" type="text/css" />
<link href="CSS/login.css" rel="stylesheet" type="text/css" />
<script src="js/validacion.js" type="text/javascript"></script>
<script src="js/envios.js" type="text/javascript"></script>


<!--[if IE 7]>
<link href="templates/khepri/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if lte IE 6]>
<link href="templates/khepri/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

	<link rel="stylesheet" type="text/css" href="CSS/rounded.css" />

<script>
    function stopEnter(e){
        var e = (e) ? e : ((event) ? event : null);
        var node = (e.target) ? e.target : ((e.srcElement) ? e.srcElement : null);
        if ((e.keyCode == 13) && (node.type == "text"))
            return false;
    }
    document.onkeypress = stopEnter;
</script>
</head>
<body>
	<div id="border-top" class="h_purple">
		<div>
			<div>
                <span class="title">
                    <% String usuario;
                    if (request.getSession() != null){
                            usuario = (String) request.getSession().getAttribute("usuario");
                    }else {
                           usuario = "";
                    %>
                           <script language="JavaScript"> window.location.href="index.jsp"</script>
                    <%
                           response.sendRedirect("index.jsp");
                       }
                    %>
                    <%=usuario%>
                </span>
			</div>
		</div>
	</div>

	<div id="content-box">
		<div class="padding">
			<div id="element-box" class="menu">
				<div id="globalheader" class="home">
                    <!--googleoff: all-->
                    <ul id="globalnav">
                        <li id="gn-bancosol"><a href="">Bancosol</a></li>
                        <li id="gn-inicio"><a href="home.jsp">Inicio</a></li>
                        <% if (request.getSession().getAttribute("usuario") == null){%>
                                <script language="JavaScript">window.location.href="index.jsp"</script>
                        <%
                        }%>
                        <li id="gn-gestAsoc"><a href="gestAsoc.jsp" class="selected">Gestión Asociaciones</a></li>
                        <li id="gn-gestUsu"><a href="gestUsu.jsp">Gestión usuarios</a></li>
                        <li id="gn-informes"><a href="informes.jsp">Informes</a></li>
                        <li id="gn-salir"><a href="index.jsp">Salir</a></li>
                    </ul>
                    <!--googleon: all-->
                    <div id="globalsearchAdmin">
                        <form name="busqueda" action="servlets/ConsUsuYFam" method="POST" class="search" id="busqueda">
                            <div>
                                <label for="sp-searchtext">
                                    <span class="prettyplaceholder">Buscar</span>
                                    <input type="search" name="buscar" id="buscar" class="g-prettysearch applesearch" accesskey="s">
                                </label>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="center">
                    <form name="anadeAsoc" method="POST" action="servlets/AnadirAsoc" id="anadeAsoc">
                        <table cellpadding="5" border="1" bgcolor="#B177E2">
                            <tr>
                                <td style="border-bottom:hidden; border-right:hidden"><label for="modlgn_username">CIF</label> (*)</td>
                                <td style="border-bottom:hidden"><input name="cif" id="cif" type="text" class="inputbox" size="15" /></td>
                            </tr>
                            <tr>
                                <td style="border-bottom:hidden; border-right:hidden"><label for="modlgn_username">Nombre</label> (*)</td>
                                <td style="border-bottom:hidden"><input name="nombre" id="nombre" type="text" class="inputbox" size="15" /></td>
                            </tr>
                            <tr>
                                <td style="border-bottom:hidden; border-right:hidden"><label for="modlgn_username">Telefono</label> (*)</td>
                                <td style="border-bottom:hidden"><input name="telefono" id="telefono" type="text" class="inputbox" size="15" /></td>
                            </tr>
                            <tr>
                                <td style="border-bottom:hidden; border-right:hidden"><label for="modlgn_username">Correo electrónico</label></td>
                                <td style="border-bottom:hidden"><input align="right" name="correo" id="correo" type="text" class="inputbox" size="15" /></td>
                            </tr>
                            <tr>
                                <td style="border-bottom:hidden; border-right:hidden"><label for="modlgn_username">Contraseña</label> (*)</td>
                                <td style="border-bottom:hidden"><input name="contrasena" id="contrasena" type="password" class="inputbox" size="15" /></td>
                            </tr>
                            <tr>
                                <td style="border-right:hidden"><label for="modlgn_passwd">Repita contraseña</label> (*)</td>
                                <td><input name="contrasenaR" id="contrasenaR" type="password" class="inputbox" size="15" /></td>
                            </tr>
                        </table>
                        <div class="button_holder">
                            <div class="button1">
                                <div class="next">
                                    <a onclick="valida(anadeAsoc);">
                                        Añadir
                                    </a>
                                </div>
                            </div>
                       </div>
                    </form>
                    Los campos con (*) son obligatorios.
                </div>

			</div>
			<noscript>
				¡Advertencia! Debes tener JavaScript habilitado para que la administración funcione correctamente			</noscript>

			<div class="clr"></div>
		</div>
	</div>
    </div>
	<div id="border-bottom"><div><div></div></div>
</div>
<div id="footer">
	<p class="copyright">
		<a href="http://www.bancosol.es" target="_blank">Bancosol</a>
		- Banco de Alimentos de la Costa del Sol
	</p>

</div>
</body>
</html>
